
import http from "@/utils/http";
import {GW} from "@/common/const";
/**
 * 获取私募动态
 * @param {Object} option
 * @param {Number} option.stockCode - 股票代码
 * @return {Promise} Array
 */
export  function getAddhold(option) {
  const url = `${GW}/gw/ynstockinfo/client/cirholder/addhold`;
  const params = {
    stockCode: "",
    ...option,
  };
  return http.get(url,params);

}
/**
 * 通过条件查询统计营业部详情-席位掘金 (姚)
 *
 */
export function getBranch(option) {
  const url = `${GW}/gw/ynstockinfo/client/hero/branch/stat/detail`;
  const params = {
    ...option,
  };
  return http.get(url,  params);
  
}
/**
 * 查询上榜股票统计详情-个股透视 (姚)
 */
export function getStock(option) {
  const url =
    "http://gw-test.zx093.com/gw/ynstockinfo/client/hero/stock/stat/detail";
  const params = {
    ...option,
  };
  return http.get(url, params);
}
/**
 * 查询上榜股票统计某个交易日营业部上榜数据 (姚)
 */
export function getBranchList(option) {
  const url =
    "http://gw-test.zx093.com/gw/ynstockinfo/client/hero/stock/stat/branch/list";
  const params = {
    ...option,
  };
  return http.get(url,  params );
  
}
/**
 * 最新交易日时间列表 (姚)
 */
export function getTimeList(option) {
  const url = "http://gw-test.zx093.com/gw/ynstockinfo/client/hero/date/list";
  const params = {
    ...option,
  };
  return http.get(url,  params );
}
/**
 * 高管增持数据统计
 */
export function getStockList(option) {
  const url = `${GW}/gw/ynstockinfo/client/manage/stock/list`;
  const params = {
    ...option,
  };
  return http.get(url,  params );
}